package com.mujie.advice;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

public class AfterLog implements AfterReturningAdvice {

    @Override
    public void afterReturning(Object o, Method method, Object[] objects, Object o1) throws Throwable {
        System.out.println("调用了 " + o1.getClass().getName() + " 的 " + method.getName() + " 方法！");
        System.out.println("后置增强日志");
    }
}
